Hi, |
Re: Usage and Max limits for pragma stack ??
Hi,
pragma stack, 5
void func(int a,b,c) {}
func (1,2,3)
pragma stack, 5
void func(int a,b,c,d) {}
func (1,2,3,4)
// we do a lot of recursions ;-) Reserve at least 400 MB Stack Memory pragma stack, 100000000 ack "Note the memory usage of DOORS in the task manager before closing!"
Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS
|
Re: Usage and Max limits for pragma stack ?? Mathias Mamsch - Wed Jan 04 05:19:19 EST 2012
Hi,
pragma stack, 5
void func(int a,b,c) {}
func (1,2,3)
pragma stack, 5
void func(int a,b,c,d) {}
func (1,2,3,4)
// we do a lot of recursions ;-) Reserve at least 400 MB Stack Memory pragma stack, 100000000 ack "Note the memory usage of DOORS in the task manager before closing!"
Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS
Thanks for the detailed explanation, now I am clear on this. One more question, I have a script with "pragma stack, 1000" I am not sure if this stack size is sufficient for the script. I know it depend on the variables used in the script, just want to check if there are any automatic tool/feature available to check the stack size required for running script. Best regards, A.Kumar |
Re: Usage and Max limits for pragma stack ?? SystemAdmin - Wed Jan 04 06:38:03 EST 2012 Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS |
Re: Usage and Max limits for pragma stack ?? SystemAdmin - Wed Jan 04 06:38:03 EST 2012
I suggest you ignore the "stack" pragma until your program complains.
pragma stack int
for DOORS v8, default is 4096=2**12
for DOORS v9, default is 16384=2**14
|